<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="Layuimini/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="Layuimini/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="Layuimini/css/public.css" media="all">
   <!-- <link rel="stylesheet" href="Pmd/css/liMarquee.css">-->
    <style>

        .layui-card {
            border: 1px solid #f2f2f2;
            border-radius: 5px;
        }

        .icon {
            margin-right: 10px;
            color: #1aa094;
        }

        .icon-cray {
            color: #ffb800 !important;
        }

        .icon-blue {
            color: #1e9fff !important;
        }

        .icon-tip {
            color: #ff5722 !important;
        }

        .layuimini-qiuck-module {
            text-align: center;
            margin-top: 10px
        }

        .layuimini-qiuck-module a i {
            display: inline-block;
            width: 100%;
            height: 60px;
            line-height: 60px;
            text-align: center;
            border-radius: 2px;
            font-size: 30px;
            background-color: #F8F8F8;
            color: #333;
            transition: all .3s;
            -webkit-transition: all .3s;
        }

        .layuimini-qiuck-module a cite {
            position: relative;
            top: 2px;
            display: block;
            color: #666;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 14px;
        }

        .welcome-module {
            width: 100%;
            height: 210px;
        }

        .panel {
            background-color: #fff;
            border: 1px solid transparent;
            border-radius: 3px;
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
        }

        .panel-body {
            padding: 10px
        }

        .panel-title {
            margin-top: 0;
            margin-bottom: 0;
            font-size: 12px;
            color: inherit
        }

        .label {
            display: inline;
            padding: .2em .6em .3em;
            font-size: 75%;
            font-weight: 700;
            line-height: 1;
            color: #fff;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: .25em;
            margin-top: .3em;
        }

        .layui-red {
            color: red
        }

        .main_btn > p {
            height: 40px;
        }

        .layui-bg-number {
            background-color: #F8F8F8;
        }

        .layuimini-notice:hover {
            background: #f6f6f6;
        }

        .layuimini-notice {
            padding: 7px 16px;
            clear: both;
            font-size: 12px !important;
            cursor: pointer;
            position: relative;
            transition: background 0.2s ease-in-out;
        }

        .layuimini-notice-title, .layuimini-notice-label {
            padding-right: 70px !important;
            text-overflow: ellipsis !important;
            overflow: hidden !important;
            white-space: nowrap !important;
        }

        .layuimini-notice-title {
            line-height: 28px;
            font-size: 14px;
        }

        .layuimini-notice-extra {
            position: absolute;
            top: 50%;
            margin-top: -8px;
            right: 16px;
            display: inline-block;
            height: 16px;
            color: #999;
        }
    </style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md8">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>数据统计</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-blue">实时</span>

                                                        <h5>首页访问次数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins"> [[${welcomePage}]] 次</h1>
                                                        <small>当前分类总记录数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-cyan">实时</span>
                                                        <h5>累计访问功能</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" > [[${size}]] 个</h1>
                                                        <small>当前分类总记录数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-orange">实时</span>
                                                        <h5>累计注册用户</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">  [[${count}]] 个</h1>
                                                        <small>当前分类总记录数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-green">实时</span>
                                                        <h5>累计书籍下载</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins"> [[${bookCount}]] 次</h1>
                                                        <small>当前分类总记录数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-credit-card icon icon-blue"></i>快捷入口</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10 layuimini-qiuck">

                                        <div class="layui-col-xs3 layuimini-qiuck-module">

                                            <a href="javascript:;" layuimini-content-href="toWeatherPage" target="_blank"
                                               data-title="导航搜索" data-icon="fa fa-search">
                                                <i class="fa fa-search"></i>
                                                <cite>导航搜索</cite>
                                            </a>
                                        </div>

                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a href="javascript:;" layuimini-content-href="toURLPage"
                                               data-title="收藏网址" data-icon="fa fa-twitter-square">
                                                <i class="fa fa-star"></i>
                                                <cite>收藏网址</cite>
                                            </a>
                                        </div>

                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a href="javascript:;" layuimini-content-href="toSalaryPage"
                                               data-title="薪资列表" data-icon="fa fa-bar-chart">
                                                <i class="fa fa-bar-chart"></i>
                                                <cite>薪资列表</cite>
                                            </a>
                                        </div>

                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a href="javascript:;" layuimini-content-href="layuiTablePage"
                                               data-title="表格示例" data-icon="fa fa-table">
                                                <i class="fa fa-table"></i>
                                                <cite>数据表格</cite>
                                            </a>
                                        </div>

                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a href="javascript:;" layuimini-content-href="toCalcPage" data-title="数据计算"
                                               data-icon="fa fa-calendar">
                                                <i class="fa fa-calculator"></i>
                                                <cite>数据计算</cite>
                                            </a>
                                        </div>
                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a href="javascript:;" layuimini-content-href="toUploadPage" data-title="文件上传"
                                               data-icon="fa fa fa-cloud-upload">
                                                <i class="fa fa fa-cloud-upload"></i>
                                                <cite>文件上传</cite>
                                            </a>
                                        </div>
                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a href="javascript:;" layuimini-content-href="getPageTxtBook"
                                               data-title="登录页面" data-icon="fa fa-book">
                                                <i class="fa fa-book"></i>
                                                <cite>书籍下载</cite>
                                            </a>
                                        </div>
                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a href="javascript:;" th:onclick="getIpaddress()" data-title="测试API文档"
                                               data-icon="fa fa-file-word-o">
                                                <i class="fa fa-file-word-o"></i>
                                                <cite>测试文档</cite>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <div class="layui-col-md4">

                <div class="layui-card">
                    <div class="layui-card-header" id="annBtn"><i class="fa fa-bullhorn icon icon-tip"></i>系统公告
                        <a layuimini-content-href="toDevProPage" href="javascript:;" data-title="开发日志" style="margin-left: 155px">
                            <i class="fa fa-edit icon-blue">详情</i></a>
                    </div>
                    <div class="layui-card-body layui-text" id="devBtn" style="height: 115px">
                    </div>

                    <div id="demo6"></div>
                </div>

            </div>

            <div class="layui-col-md12">

                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>常用工具</legend>
                    </fieldset>
                <blockquote class="layui-elem-quote main_btn" style="height: 210px">
                    <div class="layui-card-body">

                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.bejson.com/" target="_blank">Json格式转换</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://tool.lu/html/" target="_blank">Html格式转换</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://tool.lu/js/" target="_blank">Js格式转换</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://tool.lu/css/" target="_blank">Css格式转换</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://tool.lu/sql/" target="_blank">Sql格式转换</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://tool.lu/xml/" target="_blank">Xml格式转换</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.iloveimg.com/zh-cn" target="_blank">在线图片编辑</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="http://www.zuohaotu.com/cut-image.aspx" target="_blank">图片合并分割</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.onlinedo.cn/img-shuiyin" target="_blank">图片加水印</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.apowersoft.cn/image-watermark-remover" target="_blank">图片去水印</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://convertio.co/zh/" target="_blank">文件格式转换</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.remove.bg/zh" target="_blank">图片背景消除</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.6k6k.cn/" target="_blank">AI抠图</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://koutu.gaoding.com/" target="_blank">在线抠图</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://tinypng.com/" target="_blank">图片无损压缩</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.uupoop.com/#/" target="_blank">在线PS软件</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.gaoding.com/s/newmedia" target="_blank">搞定设计</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.chuangkit.com/newcustomera" target="_blank">创可贴</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.tutieshi.com/" target="_blank">制作Gif图片</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.designevo.com/cn/logo-maker/" target="_blank">Logo设计</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.tutieshi.com/compose/" target="_blank">Gif之家</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="http://www.ico51.cn/" target="_blank">生成透明ICO</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.pexels.com/zh-cn/" target="_blank">Pexels</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://pixabay.com/" target="_blank">pixabay</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://unsplash.com/" target="_blank">Unsplash</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://pxhere.com/" target="_blank">Pxhere</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://image.baidu.com/" target="_blank">百度图片</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.fabiaoqing.com/" target="_blank">发表情</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.dbbqb.com/" target="_blank">表情包制作</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://lightpdf.com/zh/" target="_blank">Light PDF</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://pdf2doc.com/zh/" target="_blank">PDF2Word</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://pdf.yozocloud.cn/p/home" target="_blank">永中PDF</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="http://tool.liumingye.cn/video/" target="_blank">VIP视频解析</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="http://data.viggo.site/" target="_blank">数据可视化</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://www.videvo.net/" target="_blank">视频素材下载</a></div>
                        <div class="layui-col-xs2 layuimini-qiuck-module"><a  href="https://tool.liumingye.cn/avbv/" target="_blank">B站AV/BV互转</a></div>

                    </div>
                </blockquote>
            </div>



          <div class="layui-row layui-col-space10">
              <div class="layui-col-md6">
                  <blockquote class="layui-elem-quote main_btn">
                      <a class="layui-btn layui-btn-xs layui-btn-normal" href="javascript:;">项目信息</a></p>
                      <p title="后端环境"><i class="fa fa-diamond icon icon-blue"></i>&nbsp;JDK1.8、Mysql5.7、SpringBoot、Maven、iReport、Easyexcel等
                      </p>
                      <p title="前端环境"><i class="fa fa-html5 icon icon-blue"></i>&nbsp;Layuimini、LightYear、Echarts、Zyupload、Swagger2、相关js插件等
                      </p>
                      <p title="运维环境"><i class="fa fa-linux icon icon-blue"></i>&nbsp;云服务器、宝塔面板、Linux、Xshell、Docker、Redis、Nginx、OSS等
                      </p>
                  </blockquote>
              </div>
              <div class="layui-col-md3">
                  <blockquote class="layui-elem-quote main_btn">
                      <a class="layui-btn layui-btn-xs layui-btn-warm">网站信息</a></p>
                      <p title="春菜助手"><a th:onclick="getchuncai()" href="javascript:;"><i
                              class="fa fa-android icon icon-blue"></i>&nbsp;春菜聊天助手</a>
                      </p>
                      <p title="宝塔面板"><a th:onclick="getBTadderss()" href="javascript:;"><i class="fa fa-pie-chart icon icon-blue"></i>&nbsp;宝塔设置面板</a>
                      </p>
                      <p title="码云地址"><a href="https://gitee.com/chaoogg-new/super-afflatus" target="_blank"><i
                              class="fa fa-git-square icon icon-blue"></i>&nbsp;码云代码地址</a>
                      </p>
                  </blockquote>
              </div>
              <div class="layui-col-md3">
                  <blockquote class="layui-elem-quote main_btn">
                      <a class="layui-btn layui-btn-xs layui-btn-danger">个人信息</a></p>
                      <p title="开发者微信"><a href="javascript:;"   onMouseOut="hideWXImg()" onmouseover="showWXImg()"><i class="fa fa-weixin icon icon-blue"></i>&nbsp;ChaooGG</a></p>
                      <img src="DownloadFile/myWatch.png" id="wxImg" style="display:none;height:100px;back-ground:#f00;position:absolute;">
                      <p title="开发者QQ"><a href="javascript:;"    onMouseOut="hideQQImg()"  onmouseover="showQQImg()"><i class="fa fa-qq icon icon-blue"></i>&nbsp;1037857035</a></p>
                      <img src="DownloadFile/qq.png" id="qqImg" style="display:none;height:120px;back-ground:#f00;position:absolute;">
                      <p title="开发者邮箱"><a href="https://mail.163.com/" target="_blank"><i class="fa fa-envelope icon icon-blue"></i>&nbsp;guyiqinxin_chao@163.com</a></p>
                  </blockquote>
              </div>
          </div>



            <div class="layui-col-md12">
                <blockquote class="layui-elem-quote main_btn">
                <div class="layui-card">
                    <div class="layui-card-header" id="appendId">
                        <span id="showTime" class="#"></span><!--&ensp;&ensp;&ensp;<span id="weather0"></span>-->
                    </div>
                </div>
                </blockquote>
            </div>


        </div>
    </div>
</div>

<script src="jQuery/jquery-2.1.1.min.js" th:src="@{LightYear/js/jquery.min.js}" charset="utf-8"></script>
<script src="Layuimini/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="Layuimini/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="timeJs/timeShow.js"></script>
<script src="timeJs/calendar.js"></script>
<script type="text/javascript" th:src="@{chongwu/chuncai.js}"></script>
<!--<script src="Pmd/js/jquery.liMarquee.js"></script>-->
<!--<script src="weather/jquery.leoweather.all.js"></script>-->

<script th:inline="javascript">

   // document.body.style.zoom="90%"
    // $('#weather0').leoweather({appid:'86986721',appsecret:'eXm5G85Y',city:'武汉'});
  /*  $('.pmd').liMarquee({
        drag: false
    });*/

    //$.chuncai().hide();

function getchuncai() {
    layer.confirm('您确定开启春菜吗?',{btn: ['确定', '取消'],title:"提示"},function(index){
        $.chuncai()
        layer.close(index);
        //window.location.reload();
    });
}



    function getIpaddress() {
        var ip = [[${ipAddress}]]
        var port = [[${localPort}]]
        var ipdoc = "http://" + ip + ":" + port + "/doc.html"
        window.open(ipdoc);
    }

    function getBTadderss() {
        var ip = [[${ipAddress}]]
        var BTaddr = "http://" + ip + ":8888"
        window.open(BTaddr);
    }

    var total;   //总条数
    var current;   //当前页
    var size;


    $(function () {
        //去首页
        to_page(1);
    });

    function to_page(pn) {
        $.ajax({
            url: "superDevProgress/getDevProInfo",
            type: "GET",
            data: {page: pn},
            async: false, //指定为同步请求，才能给下面data1赋值
            success: function (result) {

                build_devProgress_table(result);
            }
        });
    }

    function build_devProgress_table(result) {

        // $("#devBtn").empty();
        var devInfo = result.records;
        $.each(devInfo, function (index, item) {
            var progress = item.progress;
            var createTime = item.createTime;
            var problem = item.problem;


            var showCreateTime = createTime.substring(0, 10); //截取时间
            // console.log("页面获取到的时间:"+showCreateTime)

            var progressdIV = $("<div class=\"layuimini-notice-title\"></div>").append(progress);
            var createTimedIV = $("<div class=\"layuimini-notice-extra\"></div>").append(showCreateTime);
            var problemdIV = $(" <div class=\"layuimini-notice-content layui-hide\"></div>").append(problem);

            $("<div class=\"layuimini-notice\"></div>").append()
                .append(progressdIV)
                .append(createTimedIV)
                .append(problemdIV)
                .appendTo("#devBtn");

        });
    }

    layui.use(['layer', 'miniTab', 'echarts'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            miniTab = layui.miniTab,
            echarts = layui.echarts,
            laypage = layui.laypage;

        $.ajax({
            url: "superDevProgress/getDevProInfo",
            type: "GET",
            async: false, //指定为同步请求，才能给下面data1赋值
            success: function (result) {
                //console.log(result);
                total = result.total
                current = result.current
                size = result.size

            }
        });

        laypage.render({
            elem: 'demo6'
            , count: total
            , limit: size           //每页显示4条
            //, groups: 2
            , layout: ['prev', 'page', 'next', 'count']
            , jump: function (obj, first) {
                if (!first) {
                    curnum = obj.curr;
                    limitcount = obj.limit;
                    //这里要清空之前的json数据  不然数据会一直累加
                    $("#devBtn").empty();
                    to_page(curnum);
                    //layer.msg(curnum+"-"+curnum);
                }

            }
        });

        miniTab.listen();

        /**
         * 查看公告信息
         **/
        $('body').on('click', '.layuimini-notice', function () {
            var title = $(this).children('.layuimini-notice-title').text(),
                noticeTime = $(this).children('.layuimini-notice-extra').text(),
                content = $(this).children('.layuimini-notice-content').html();
            var html = '<div style="padding:15px 20px; text-align:justify; line-height: 22px;border-bottom:1px solid #e2e2e2;background-color: #2f4056;color: #ffffff">\n' +
                '<div style="text-align: center;margin-bottom: 20px;font-weight: bold;border-bottom:1px solid #718fb5;padding-bottom: 5px"><h4 class="text-danger">' + title + '</h4></div>\n' +
                '<div style="font-size: 12px">' + content + '</div>\n' +
                '</div>\n';
            parent.layer.open({
                type: 1,
                title: '系统公告' + '<span style="float: right;right: 1px;font-size: 12px;color: #b1b3b9;margin-top: 1px">' + noticeTime + '</span>',
                area: '300px;',
                shade: 0.8,
                id: 'layuimini-notice',
                btn: ['确定'],
                btnAlign: 'c',
                moveType: 1,
                content: html,
                success: function (layero) {
                    var btn = layero.find('.layui-layer-btn');
                    btn.find('.layui-layer-btn0').attr({
                        // href: '#',
                        // target: '_blank'
                    });
                }
            });
        });


      /*  var tips;
        $("#annBtn").on({
            mouseenter: function () {
                var that = this;
                tips = layer.tips("<span style='color: #000;'>默认显示3条记录</span>",
                    that, {tips: [2, '#fff'], time: 0, area: 'auto', maxWidth: 500});
            },
            mouseleave: function () {
                layer.close(tips);
            }
        });*/

    });


    function  showWXImg(){
        document.getElementById("wxImg").style.display='block';
    }
    function hideWXImg(){
        document.getElementById("wxImg").style.display='none';
    }

    function  showQQImg(){
        document.getElementById("qqImg").style.display='block';
    }
    function hideQQImg(){
        document.getElementById("qqImg").style.display='none';
    }


  /*  var calendarJson = JSON.stringify(calendar.solar2lunar(), null, 4);
    var calendarObj = JSON.parse(calendarJson);
    // console.log(calendarObj)
    //console.log("农历节日:"+calendarObj.lunarFestival);
    if (calendarObj.lunarFestival != null) {
        var Lfestival ="农历节日:"+ calendarObj.lunarFestival;
    } else {
        Lfestival = "农历节日:无";
    }
    //console.log("节日:"+calendarObj.festival);
    if (calendarObj.festival != null) {
        var Yfestival = "阳历节日:"+calendarObj.festival;
    } else {
        Yfestival = "阳历节日:无";
    }*/


   // $("#appendId").append(calendarObj.gzYear + "年" + calendarObj.IMonthCn + calendarObj.IDayCn + "(" + calendarObj.astro + ")" + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + Lfestival + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + Yfestival);

</script>

</body>
</html>